import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "./http"
import attachFastClick from 'fastclick';
import 'lib-flexible/flexible'
import '@/cube-ui.js'

import { loading, msg, push } from '@/utils/utils'

// Header组件
import Headers from "@/components/Headers"

// 全局使用Header组件   用的时候直接写标签就好了<Headers> slot 插槽内容 </Headers>
Vue.component('Headers', Headers)

// fastClick
attachFastClick.attach(document.body);

// 扩展添加axios到vue
Vue.prototype.$axios = axios;
// loading
Vue.prototype.$loading = loading;
// message
Vue.prototype.$msg = msg;
// push
Vue.prototype.$push = push;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
